package com.babel.util.util;

import java.math.BigDecimal;

/**
 * 计算担保人垫付计划的垫付金额
 * @author zmf
 *
 */
public class SponsorAdvanceAmountUtil {
	
	public static BigDecimal getAdvanceAmount(BigDecimal bondAmount,BigDecimal approvalAmount,BigDecimal principalMonth,BigDecimal interestingMonth){
		return bondAmount.divide(approvalAmount,6,BigDecimal.ROUND_HALF_UP).multiply(principalMonth.add(interestingMonth));
	}
	
}
